/**
 * jims
 */
package com.jims.master.modules.csm.entity;

import com.jims.master.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.beans.Transient;
import java.util.Date;

/**
 * Entity
 * @author 系统管理员
 * @version 2017-03-28
 */
public class ExpStorageProfile extends DataEntity<ExpStorageProfile> {

    private static final long serialVersionUID = 1L;
    private String expCode;		// 消耗品编码
    private String infoId;		// expInfoId
    private String storageId;		// 库存单位
    private String packageNum;		// 包装数量
    private String packageSpec;		// 包装规格
    private String packageUnits;		// 包装单位
    private String maxQuantity;		// 小包装库存量上限
    private String minQuantity;		// 小包装库存量下限
    private String storageName;		// 单位名称

    //临时字段
    private String expName;    //消耗品名称
    private String quantity;    //当前库存量数
    private String outQuantity; //消耗量
    private Date startDate;    //消耗品消耗开始时间
    private Date stopDate;    //消耗品消耗结束时间

    @Transient
    public String getExpName() {
        return expName;
    }

    public void setExpName(String expName) {
        this.expName = expName;
    }

    @Transient
    public String getQuantity() {
        return quantity;
    }

    public void setQuantity(String quantity) {
        this.quantity = quantity;
    }

    @Transient
    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    @Transient
    public Date getStopDate() {
        return stopDate;
    }

    public void setStopDate(Date stopDate) {
        this.stopDate = stopDate;
    }

    @Transient
    public String getOutQuantity() {
        return outQuantity;
    }

    public void setOutQuantity(String outQuantity) {
        this.outQuantity = outQuantity;
    }

    public ExpStorageProfile() {
        super();
    }

    public ExpStorageProfile(String id){
        super(id);
    }

    @Length(min=1, max=32, message="消耗品编码长度必须介于 1 和 32 之间")
    public String getExpCode() {
        return expCode;
    }

    public void setExpCode(String expCode) {
        this.expCode = expCode;
    }

    @Length(min=1, max=64, message="expInfoId长度必须介于 1 和 64 之间")
    public String getInfoId() {
        return infoId;
    }

    public void setInfoId(String infoId) {
        this.infoId = infoId;
    }

    @Length(min=1, max=64, message="库存单位长度必须介于 1 和 64 之间")
    public String getStorageId() {
        return storageId;
    }

    public void setStorageId(String storageId) {
        this.storageId = storageId;
    }

    @Length(min=0, max=8, message="包装数量长度必须介于 0 和 8 之间")
    public String getPackageNum() {
        return packageNum;
    }

    public void setPackageNum(String packageNum) {
        this.packageNum = packageNum;
    }

    @Length(min=1, max=20, message="包装规格长度必须介于 1 和 20 之间")
    public String getPackageSpec() {
        return packageSpec;
    }

    public void setPackageSpec(String packageSpec) {
        this.packageSpec = packageSpec;
    }

    @Length(min=1, max=2, message="包装单位长度必须介于 1 和 2 之间")
    public String getPackageUnits() {
        return packageUnits;
    }

    public void setPackageUnits(String packageUnits) {
        this.packageUnits = packageUnits;
    }

    public String getMaxQuantity() {
        return maxQuantity;
    }

    public void setMaxQuantity(String maxQuantity) {
        this.maxQuantity = maxQuantity;
    }

    public String getMinQuantity() {
        return minQuantity;
    }

    public void setMinQuantity(String minQuantity) {
        this.minQuantity = minQuantity;
    }
    @Transient
    public String getStorageName() {
        return storageName;
    }
    @Transient
    public void setStorageName(String storageName) {
        this.storageName = storageName;
    }
}